# -*- coding: utf-8 -*-
#!/usr/bin/env python

import aop
import aop.api

ACCOUNT_INOF={'appKey':1120116,'appSecret':'17EjiRaD3Kw4','access_token':'7da60749-be87-4c1c-9f17-4724dc669898'}

aop.set_default_server('gw.open.1688.com')
aop.set_default_appinfo(ACCOUNT_INOF['appKey'],  ACCOUNT_INOF['appSecret'])

custom_timestamp_generator = aop.api.GetServerTimestampRequest().get_response()
aop.set_timestamp_generator(custom_timestamp_generator)

req = aop.api.ProductSearchOfferRecommendParam()
req.access_token = ACCOUNT_INOF['access_token']
req.other_param ={
  "recommendOfferParam": {
    "beginPage": "1",
    "pageSize": "20",
    "country": "en",
    "outMemberId": "dferg0001"
  }
}
print(req.get_response())
